<article>
  <section class="markdown"><h1>Anchor 锚点</h1>
    <section class="markdown"><p>用于跳转到页面指定位置。</p>
      <h2 id="何时使用"><span>何时使用</span>
        <a class="anchor">#</a>
      </h2>
      <p>需要展现当前页面上可供跳转的锚点链接，以及快速在锚点之间跳转。</p>
    </section>
    <h2 id="代码演示">代码演示<i class="code-box-expand-trigger anticon anticon-appstore" title="展开全部代码"></i></h2>
  </section>
  <div nz-row [nzGutter]="8">
    <div nz-col [nzSpan]="12" id="components-anchor-demo-fixed">
      <nz-code-box [nzTitle]="'固定'" [nzCode]="NzDemoAnchorFixedCode">
        <nz-demo-anchor-fixed demo></nz-demo-anchor-fixed>
        <div intro>
          <p>需要配合 <code>nz-affix</code> 使用。</p>
        </div>
      </nz-code-box>
    </div>
    <div nz-col [nzSpan]="12" id="components-anchor-demo-basic">
      <nz-code-box [nzTitle]="'基本'" [nzCode]="NzDemoAnchorBasicCode">
        <nz-demo-anchor-basic demo></nz-demo-anchor-basic>
        <div intro>
          <p>最简单的用法。</p>
        </div>
      </nz-code-box>
    </div>
  </div>
  <section class="markdown api-container">
    <h2 id="API"><span>API</span>
      <a class="anchor">#</a>
    </h2>
    <h3 id="API-Anchor"><span>nz-anchor</span>
      <a class="anchor">#</a>
    </h3>
    <table>
      <thead>
        <tr>
          <th>参数</th>
          <th>说明</th>
          <th>类型</th>
          <th>默认值</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>nzOffsetTop</td>
          <td>距离窗口顶部达到指定偏移量后触发</td>
          <td>number</td>
          <td></td>
        </tr>
        <tr>
          <td>nzBounds</td>
          <td>锚点区域边界</td>
          <td>number</td>
          <td>5(px)</td>
        </tr>
        <tr>
          <td>nzScroll</td>
          <td>滚动至某锚点时触发</td>
          <td>function</td>
          <td></td>
        </tr>
      </tbody>
    </table>
    <h3 id="API-AnchorLink"><span>nz-link</span>
      <a class="anchor-link">#</a>
    </h3>
    <table>
      <thead>
        <tr>
          <th>参数</th>
          <th>说明</th>
          <th>类型</th>
          <th>默认值</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>nzHref</td>
          <td>锚点链接</td>
          <td>string</td>
          <td></td>
        </tr>
        <tr>
          <td>nzTitle</td>
          <td>文字内容</td>
          <td>string</td>
          <td></td>
        </tr>
        <tr>
          <td>nzTemplate</td>
          <td>文字内容，会覆盖掉 <code>nzTitle</code> 的内容</td>
          <td>ng-template</td>
          <td></td>
        </tr>
      </tbody>
    </table>
  </section>
</article>
